home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 July
/
07_02.iso
/
software
/
xq-xsetup
/
files
/
setup.exe
/
{app}
/
plugins
/
XQ Win2k Control Panel 2.xpl
< prev
next >
Wrap
Text File
|
2001-04-12
|
2KB
|
96 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="8"
"COUNT"="2"
"TEXT 1"="Edit Path..."
"TEXT 2"="Delete"
"UIPATH"="Appearance\Control Panel\Windows 2000/XP Icons"
"NAME"="Visible Items (System)"
"VERSION"="1.05"
"OSVERSION"="000101"
"LANGUAGE"="VBScript"
"DESCRIPTION 1"="This plug-in allows you to modify which Control Panel applets that conform to the Windows 2000 specification that you wish to view."
"DESCRIPTION 2"=""
"DESCRIPTION 3"=""
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
'COPY! DO NOT EDIT! COPY! DO NOT EDIT! COPY! DO NOT EDIT! COPY! DO NOT EDIT!
'COPY! DO NOT EDIT! COPY! DO NOT EDIT! COPY! DO NOT EDIT! COPY! DO NOT EDIT!
'sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Control Panel\cpls\"
sP="HKLM\Software\Microsoft\Windows\CurrentVersion\Control Panel\cpls\"
Sub Plugin_Initialize
iCount=RegEnumValues(sP)
for l=1 to iCount
s=sP & RegEnumElement(l)
s2=RegReadValue(s)
s3=RegEnumElement(l) & " (" & s2 & ")"
Call SetUIElement(l,s3)
next
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
if ElementSubIndex>0 then 'OK, user has selected an item
If ElementIndex=1 then
'Rename file
s=sP & RegEnumElement(ElementSubIndex)
sV=RegReadValue(s)
sV=InputWindow("Change path",sV,1)
if IsEmpty(sV)=false then
'change it (write REG_EXPAND_SZ)
Call RegWriteValue(s,sV,4)
'update UI
s=RegEnumElement(ElementSubIndex) & " (" & sV & ")"
Call SetUIElement(ElementSubIndex,s)
end if
else
'Delete!!
s=""
sV=InputWindow("Enter YES to delete this item",s,1)
bOK=false
if IsEmpty(sV)=false then
if sV="YES" then
bOK=true
s=sP & RegEnumElement(ElementSubIndex)
Call RegDeleteValue(s)
Call SetUIElement(ElementSubIndex,"")
end if
end if
if bOK=false then
Call MsgWarning("Items was not deleted")
end if
end if
Call IndicateSettingChange()
else
Call MsgWarning("No item selected - please select an item first.")
end if
End Sub
Sub Plugin_Terminate
End Sub